package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.model.dto.system.LoginDto;
import com.atguigu.spzx.model.dto.system.SysUserDto;
import com.atguigu.spzx.model.entity.system.SysUser;
import com.atguigu.spzx.model.vo.system.LoginVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author LT
 * @create 2024-03-07-10:15
 */
public interface SysUserService {
    LoginVo login(LoginDto loginDto);

    SysUser getUserInfo(String token);

    void logout(String token);

    PageInfo<SysUser> findDtoPage(Integer pageNum, Integer pageSize, SysUserDto sysUserDto);

    SysUser findSysUserById(Long id);

    void saveSysUser(SysUser sysUser);

    List<SysUser> findAll();

    void UpdateById(SysUser sysUser);

    void deleteById(Long id);
}
